package com.antball.aaa.command_responsibilitychain_design;

import com.antball.aaa.command_responsibilitychain_design.model.CommandVo;

/**
 * @Auther: huangsj
 * @Date: 2019/8/6 17:41
 * @Description:
 */
public class LsCommand extends Command {
    CommandName firstNode=null;

    @Override
    public String execute(CommandVo commandVo) {

        firstNode = super.buildChain(BaseLs.class).get(0);

        return firstNode.handlerMessage(commandVo);
    }
}
